package com.thiswhyme.storage.utils;

import com.thiswhyme.common.conststant.CommonConstant;
import com.thiswhyme.storage.core.platform.PlatformType;

/**
 * @description: 文件存储工具类
 * @author: thiswhyme
 * @date: 2021/9/23
 */
public class StorageUtils {

    /**
     * 组装存储平台code
     * @param platformType
     * @param configKey
     * @return
     */
    public static String genPlatformCode(PlatformType platformType, String configKey) {
        return platformType.name() + CommonConstant.HYPHEN + configKey;
    }
}
